<template>
	<view class="max-box">
		<view class="header">
			<u-search placeholder="请输入关键字 " :showAction="false" v-model="search"></u-search>
		</view>
		<view class="main">
			<view class="popular-searches">热门搜索</view>
			<view class="popular-content">
				<view class="searches-style">002</view>
				<view class="searches-style">003</view>
				<view class="searches-style">004</view>
			</view>
			<view class="historical">
				<view class="historical-search">历史搜索</view>
				<view class="empty">清空</view>
			</view>
			<view class="searches-style">002</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// 搜索框绑定的数据
				search:'',
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.header{
		padding: 20rpx;
	}
	.main{
		margin-top: 40rpx;
		padding: 20rpx;
	}
	.popular-searches{
		color: #303133;
	}
	.popular-content{
		display: flex;
		align-items: center;
	}
	.searches-style{
		width: 50rpx;
		padding: 10rpx 25rpx 10rpx 25rpx;
		background-color: #F5F5F5;
		border-radius: 50rpx;
		margin-right: 20rpx;
		margin-top: 30rpx;
	}
	.historical{
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.historical-search{
		color: #303133;
	}
	.empty{
		color: #999999;
	}
</style>